package com.tbb.app.base.search;

import com.tbb.app.common.entity.PageBeanSearch;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "消息分页查询传参对象")
public class MessageAdminPageSearch extends PageBeanSearch {

    @ApiModelProperty("发送人昵称")
    private String sendName;

    @ApiModelProperty("发送人账号")
    private String sendAccount;

    @ApiModelProperty("接收人昵称")
    private String receiveName;

    @ApiModelProperty("接收人账号")
    private String receiveAccount;

    @ApiModelProperty("查询开始时间，yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("查询结束时间，yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
